package annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

    public static void main(String[] args) {
        ApplicationContext act=new ClassPathXmlApplicationContext("beans_anno.xml");//配置文件换了

        UserService userService=(UserService)act.getBean("userService");

        userService.say();
    }
}
